﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000219 RID: 537
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueCurrentInfo : IMessage<ChessRogueCurrentInfo>, IMessage, IEquatable<ChessRogueCurrentInfo>, IDeepCloneable<ChessRogueCurrentInfo>, IBufferMessage
	{
		// Token: 0x17000702 RID: 1794
		// (get) Token: 0x0600180D RID: 6157 RVA: 0x000445D7 File Offset: 0x000427D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueCurrentInfo> Parser
		{
			get
			{
				return ChessRogueCurrentInfo._parser;
			}
		}

		// Token: 0x17000703 RID: 1795
		// (get) Token: 0x0600180E RID: 6158 RVA: 0x000445DE File Offset: 0x000427DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueCurrentInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000704 RID: 1796
		// (get) Token: 0x0600180F RID: 6159 RVA: 0x000445F0 File Offset: 0x000427F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueCurrentInfo.Descriptor;
			}
		}

		// Token: 0x06001810 RID: 6160 RVA: 0x000445F7 File Offset: 0x000427F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo()
		{
		}

		// Token: 0x06001811 RID: 6161 RVA: 0x0004460A File Offset: 0x0004280A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo(ChessRogueCurrentInfo other) : this()
		{
			this.rogueSubMode_ = other.rogueSubMode_;
			this.rogueCurrentGameInfo_ = other.rogueCurrentGameInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001812 RID: 6162 RVA: 0x00044640 File Offset: 0x00042840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo Clone()
		{
			return new ChessRogueCurrentInfo(this);
		}

		// Token: 0x17000705 RID: 1797
		// (get) Token: 0x06001813 RID: 6163 RVA: 0x00044648 File Offset: 0x00042848
		// (set) Token: 0x06001814 RID: 6164 RVA: 0x00044650 File Offset: 0x00042850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueSubMode
		{
			get
			{
				return this.rogueSubMode_;
			}
			set
			{
				this.rogueSubMode_ = value;
			}
		}

		// Token: 0x17000706 RID: 1798
		// (get) Token: 0x06001815 RID: 6165 RVA: 0x00044659 File Offset: 0x00042859
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueGameInfo> RogueCurrentGameInfo
		{
			get
			{
				return this.rogueCurrentGameInfo_;
			}
		}

		// Token: 0x06001816 RID: 6166 RVA: 0x00044661 File Offset: 0x00042861
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueCurrentInfo);
		}

		// Token: 0x06001817 RID: 6167 RVA: 0x00044670 File Offset: 0x00042870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueCurrentInfo other)
		{
			return other != null && (other == this || (this.RogueSubMode == other.RogueSubMode && this.rogueCurrentGameInfo_.Equals(other.rogueCurrentGameInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001818 RID: 6168 RVA: 0x000446C0 File Offset: 0x000428C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RogueSubMode != 0U)
			{
				num ^= this.RogueSubMode.GetHashCode();
			}
			num ^= this.rogueCurrentGameInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001819 RID: 6169 RVA: 0x0004470D File Offset: 0x0004290D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600181A RID: 6170 RVA: 0x00044715 File Offset: 0x00042915
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600181B RID: 6171 RVA: 0x00044720 File Offset: 0x00042920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RogueSubMode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.RogueSubMode);
			}
			this.rogueCurrentGameInfo_.WriteTo(ref output, ChessRogueCurrentInfo._repeated_rogueCurrentGameInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600181C RID: 6172 RVA: 0x00044770 File Offset: 0x00042970
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RogueSubMode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueSubMode);
			}
			num += this.rogueCurrentGameInfo_.CalculateSize(ChessRogueCurrentInfo._repeated_rogueCurrentGameInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600181D RID: 6173 RVA: 0x000447C4 File Offset: 0x000429C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueCurrentInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RogueSubMode != 0U)
			{
				this.RogueSubMode = other.RogueSubMode;
			}
			this.rogueCurrentGameInfo_.Add(other.rogueCurrentGameInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600181E RID: 6174 RVA: 0x00044811 File Offset: 0x00042A11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600181F RID: 6175 RVA: 0x0004481C File Offset: 0x00042A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 74U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.rogueCurrentGameInfo_.AddEntriesFrom(ref input, ChessRogueCurrentInfo._repeated_rogueCurrentGameInfo_codec);
					}
				}
				else
				{
					this.RogueSubMode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040009F5 RID: 2549
		private static readonly MessageParser<ChessRogueCurrentInfo> _parser = new MessageParser<ChessRogueCurrentInfo>(() => new ChessRogueCurrentInfo());

		// Token: 0x040009F6 RID: 2550
		private UnknownFieldSet _unknownFields;

		// Token: 0x040009F7 RID: 2551
		public const int RogueSubModeFieldNumber = 8;

		// Token: 0x040009F8 RID: 2552
		private uint rogueSubMode_;

		// Token: 0x040009F9 RID: 2553
		public const int RogueCurrentGameInfoFieldNumber = 9;

		// Token: 0x040009FA RID: 2554
		private static readonly FieldCodec<RogueGameInfo> _repeated_rogueCurrentGameInfo_codec = FieldCodec.ForMessage<RogueGameInfo>(74U, RogueGameInfo.Parser);

		// Token: 0x040009FB RID: 2555
		private readonly RepeatedField<RogueGameInfo> rogueCurrentGameInfo_ = new RepeatedField<RogueGameInfo>();
	}
}
